#include <iostream>
#include <list>
using namespace std;
bool compare(int a, int b)
{
    return a > b;
}
void test1()
{
    list<int> l1;
    l1.push_back(56);
    l1.push_back(146);
    l1.push_back(47);
    l1.sort(compare);
    for (list<int>::iterator it = l1.begin(); it != l1.end(); ++it)
    {
        cout << *it << endl;
    }
}
int main(void)
{
    test1();
    
    return 0;
}